package com.wish;

/**
 * Created by suliucheng on 2021/1/27 21:36
 * Directions:
 */
public class Decorator extends Drink {
    private Drink obj;

    public Decorator(Drink drink) {
        this.obj = drink;
    }
    @Override
    public Integer cost() {
        return getPrice() + obj.cost();
    }
}
